Part Number Hot Search : 
74F125SJ 30207 BTB15C19 AHCT1 63130 G3U1085 8F320 68HC0
Product Description
Full Text Search
 

To Download GPS140 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  GPS140hr gps positioning module user?s manual bdm - 610020004 rev. a
GPS140hr 2 rtd embedded technologies, inc.
GPS140hr 3 rtd embedded technologies, inc. GPS140hr gps positioning module user?s manual rtd embedded technologies, inc. 103 innovation blvd. state college, pa 16803 - 0906 phone: +1 - 814 - 234 - 808 7 fax: +1 - 814 - 234 - 5218 e - mail sales@rtd.com techsupport@rtd.com web site http://www.rtd.com
GPS140hr 4 rtd embedded technologies, inc. revision history 12/08/2000 hw release 1.1, preliminary version, released 18/08/2000 rev. a new manual naming method published by: rtd embedded technologies, inc. 103 innovation blvd. state college, pa 16803 - 0906 copyright 1999, 2002, 2003 by rtd embedded technologies, inc. all rights reserved printed in u.s.a. the rtd logo is a registered trademark of rtd embedded technologies. cpumodule and utilitymodule are trademarks of rtd embedded technologies. phoenixpico and pheonixpico bios are trademarks of phoenix technologies ltd. ps/2, pc/xt, pc/at and ibm are trademarks of international business ma chines i nc. ms - dos, windows, windows 95, windows 98 and windows nt are trademarks of microsoft corp. pc/104 is a registered trademark of pc/104 consortium. all other trademarks appearing in this doc ument are the property of their respective owners.
GPS140hr 5 rtd embedded technologies, inc. table of contents chapter 1 - introduction ................................ ................................ ......................... 8 features ................................ ................................ ................................ ................................ ................................ ............................. 8 some of the key features of the GPS140hr include: ................................ ................................ ................................ .......... 8 gps receiver ................................ ................................ ................................ ................................ ................................ ..................... 8 16c550 compatible uart ................................ ................................ ................................ ................................ .............................. 9 i/o inter faces ................................ ................................ ................................ ................................ ................................ .................... 9 mechanical description ................................ ................................ ................................ ................................ ................................ ... 9 connector description ................................ ................................ ................................ ................................ ................................ ..... 9 what comes wi th your board ................................ ................................ ................................ ................................ .......................... 9 using this manual ................................ ................................ ................................ ................................ ................................ .......... 10 when you need help ................................ ................................ ................................ ................................ ................................ ....... 10 chapter 2 - board settings ................................ ................................ .................. 11 factory - configured jumper settings ................................ ................................ ................................ ................................ ........ 12 base address jumpers (factory setting: 2e8h) ................................ ................................ ................................ ........................ 13 host interrupt (factory setting: irq5, g closed) ................................ ................................ ................................ ........... 15 gps configuration (factory setting: rom disabled, nmea) ................................ ................................ ........................... 16 chapter 3 board installation ................................ ................................ ........... 18 board installation ................................ ................................ ................................ ................................ ................................ .......... 18 general installation guidelines: ................................ ................................ ................................ ................................ ............ 18 gps receiver connector ................................ ................................ ................................ ................................ ................................ 19 utility i/o header connector j3 ................................ ................................ ................................ ................................ ................... 21 chapter 4 - hardware descripti on ................................ ................................ . 22 antenna ................................ ................................ ................................ ................................ ................................ ............................ 23 uart channel ................................ ................................ ................................ ................................ ................................ ................ 24 pulse outputs ................................ ................................ ................................ ................................ ................................ .................. 24 1 pps output and led ................................ ................................ ................................ ................................ ........................... 24 10khz output ................................ ................................ ................................ ................................ ................................ ......... 24 fuses ................................ ................................ ................................ ................................ ................................ ....................... 25 chapter 5 board operation and programming ................................ ....... 26 defining the memory map ................................ ................................ ................................ ................................ ............................ 26 interrupts ................................ ................................ ................................ ................................ ................................ ................. 27 what is an interrupt? ................................ ................................ ................................ ................................ ............................ 27 interrupt request lines ................................ ................................ ................................ ................................ ........................... 27 8259 programmable interrupt controller ................................ ................................ ................................ ............................. 27 interrupt mask register (imr) ................................ ................................ ................................ ................................ ............ 28 end - of - interrupt (eoi) command ................................ ................................ ................................ ................................ ........ 28 what exac tly happens when an interrupt occurs? ................................ ................................ ................................ ........... 28
GPS140hr 6 rtd embedded technologies, inc. using interrupts in your program ................................ ................................ ................................ ................................ ....... 28 writing an interrupt service routine (isr) ................................ ................................ ................................ ....................... 29 your isr should have the following structure: ................................ ................................ ................................ ............ 30 saving the startup interrupt mask register (imr) and interrupt vector ................................ ................................ . 30 common interrupt mistakes ................................ ................................ ................................ ................................ ............. 31 example on interrupt vector table setup in c - code: ................................ ................................ ................................ ..... 32 chapte r 6 - GPS140hr specifica tions ................................ .............................. 33 host interface ................................ ................................ ................................ ................................ ................................ ................. 33 gps receiver specifications ................................ ................................ ................................ ................................ ........................ 33 operational ................................ ................................ ................................ ................................ ................................ ............. 33 rf signal environment ................................ ................................ ................................ ................................ .......................... 33 environmental ................................ ................................ ................................ ................................ ................................ ........ 33 u art ................................ ................................ ................................ ................................ ................................ ................................ 33 GPS140hr electromechanical ................................ ................................ ................................ ................................ ................... 34 chapter 7 - return policy and w arranty ................................ ................... 35 return policy ................................ ................................ ................................ ................................ ................................ .................. 35 chapter 8 limited warranty ................................ ................................ ................ 37 list of illustrations & tables ................................ ................................ ................................ ................................ ................................ ................. illustrations fig. 2 - 1 GPS140hr board layout sho w ing jumper locations fig. 2 - 2 base address jumpers illustrating address 3f8h fig. 2 - 3 interrupt jumpers from left to right: irq 2,5,7,10,11,12,15 and g fig. 2 - 4 gps receiver jumper blocks for configuration fig. 2 - 5 antenna selection jumper block set for +5v antenna supply fig. 3 - 1 GPS140hr integrated in a rtd pc/104 cpumodule stack together with a hpwr104 and a cmm series cpumodule fig. 3 - 2 dgps data input header connector fig. 3 - 3 utility connector fig. 4 - 1 block diagram of the GPS140hr fig. 4 - 2 1 pps output indicator led ................................ ................................ ................................ ................................ ................................ .......................... tables
GPS140hr 7 rtd embedded technologies, inc. table 2 - 1 factory configured jumper settings table 2 - 2 base address jumper settings GPS140hr table 2 - 3 gps receiver configuration jumpers table 2 - 3 gps receiver configuration jumpers table 3 - 1 pin outs of the gps receiver interface conne ctor table 3 - 2 pin out of dgps input header connector table 3 - 3 utility connector pin out table 5 - 1 general i/o map of the GPS140hr
GPS140hr 8 rtd embedded technologies, inc. chapter 1 - i ntroduction this user?s manual describes the operation of the rtd GPS140hr integrated global positioning system (gps) positioning module ideal for mobile, marine, aviation and automotive applications. features some of the key features of the GPS140hr include: ? direct connection to gps receiver module ? true nmea - 0183 data protocol version 2.01, also binary output ? 12 - sate llite parallel tracking gps receiver with fast response ? differential gps support with external correction source ? onboard uart with flexible i/o and irq selection ? supports passive and active antennas with +5v or +12v supp ly ? osx/msx antenna connector ? 1 pps time mark output as well as 10khz clock ? backup battery to store gps receiver data while powered off ? status led indicating 1 pps time mark and gps activity ? wide operating temperature range ? 40 to + 85c ? fully pc/104 complia nt the following paragraphs briefly describe the major features of the GPS140hr. a more detailed discussion is included in chapter 4 (hardware description) the boards installation is described in chapter 2 (board installation). gps receiver the GPS140 hr global positioning system (gps) board uses for the satellite signal reception data processing a miniature oem gps receiver module specially designed for the most demanding applications. this low power receiver outputs ascii - character based nmea - 0183 dat a protocol or alternatively a binary message protocol format. the used data protocol can be selected with a jumper. special features of the gps receiver include 12 channel parallel - tracking channels and a fast acquisition and reacquisition response. powerf ul algorithms ensure reliable operation in dense vegetation or in urban canyon environments.
GPS140hr 9 rtd embedded technologies, inc. 16c550 compatible uart communication to the gps receiver module is performed through a standard uart channel. this onboard serial port leaves the other system serial ports free for the user. all operating systems will recognize and support this 16c550 standard uart, and therefore no special communication drivers are needed to receive data from your gps receiver. the address and interrupt of your serial channel can be changed with the onboard jumpers. i/o interfaces the GPS140hr can be controlled and monitored from the software through the dedicated serial port of the module. a special i/o connector is available for the user to connect to the gps 1 pps time ma rk as well as a precise 10khz timing clock signal. also the active antenna supply of +12v can be fed through the i/o connector. mechanical description the GPS140hr is designed on a pc/104 form factor. an easy mechanical interface to both pc/104 and rtd i dan systems can be achieved. stack your GPS140hr directly on a pc/104 compatible cpu module using the onboard mounting holes and standoffs. connector description the gps receiver antenna interface is an osx type miniature coaxial connector. connect your antenna directly to the GPS140hr antenna connector, or use a short cable inside your enclosure to connect to a feed through connector to allow connection of the antenna to the wall of your enclosure. all i/o connections are made using header type terminals . what comes with your board your GPS140hr package contains the following items: ? GPS140hr board ? software disk with some example programs ? user's manual additional software and drivers can be downloaded from our website. if any item is missing or damaged, please send an email to real time devices finland sales service department at < sales@rtdfinland.fi >.
GPS140hr 10 rtd embedded technologies, inc. note that rtd embedded technologies, inc. also can offer a gps104hr starter kit that will include an active antenna with ready cables for direct evaluation and testing of this module. the part number for this starter kit is sk - GPS140hr . using this manual this manual is intended to help you install your new GPS140hr module and get it working quickl y, while also providing enough detail about the board and it's functions so that you can enjoy maximum use of it's features even in the most demanding applications. when you need help this manual and all the example programs will provide you with enough information to fully utilize all the features on this board. if you have any problems installing or using this board, contact our technical support department at < techsupport@rtdfinland.fi >. when sending us an email request please include the following information: your company's name and address, your name, your telephone number, and a brief description of the problem.
GPS140hr 11 rtd embedded technologies, inc. chapter 2 - b oard settings the GPS140hr board has jumper settings, which can be changed to sui t your application and host computer configuration. the factory settings are listed and shown in the diagram at the beginning of this chapter. make sure you completely study and understand this chapter before making changed to these settings.
GPS140hr 12 rtd embedded technologies, inc. factory - configured jumper settings table 2 - 1 below illustrates the factory jumper setting for the GPS140hr. figure 2 - 1 shows the board layout of the GPS140hr and the locations of the jumpers. the following paragraphs explain how to change the factory jumper settings to suit your specific application. table 2 - 1 factory configured jumper settings (please see figure 2 - 1 below for more detailed locations) jumper name description number of jumpers factory setting base base add ress 6 2e8 irq host interrupt 11+1 5, g ? jumper closed conf gps configuration 3 nmea output x1 antenna supply 3 5v antenna cable fig. 2 - 1 GPS140hr board layout sho w ing jumper locations
GPS140hr 13 rtd embedded technologies, inc. base address jumpers (factory setting: 2e8h) the GPS140hr is i/o mapped into the memory space of your host xt/at. the board occupies a co n secutive memory window of 8 bytes starting from the base address. the most common cause of failure when you are first setting up your module is address contention: some of your computers i/o space is already occupied by other devices and memory resident programs. when the GPS140hr attempts to use it's own reserved memory addresses (which are being already used by another p e ripheral device) erratic performance may occur and the data read from the board may be corrupted. to avoid this problem make sure you set up the base address by using the six jumpers on the right side of the board, this allows you to choose from a number of different addresses i n your host computer?s i/o map. should the factory installed setting of 38fh be incompatible to your system configuration, you may change this setting to another using the options illustrated in table 2 - 2 (overleaf). the table shows the jumper settings and their corresponding values in hexadecimal form. ensure that you verify the correct l o cation of the base address jumpers. when the jumper is removed it corresponds to a logical "0", connecting the jumper to a "1". when you set the base address of the modul e, record the setting inside the back cover of this manual.
GPS140hr 14 rtd embedded technologies, inc. base address jumper settings GPS140hr base (hex) a8 a7 a6 a5 a4 a3 218 0 0 0 0 1 1 238 0 0 0 1 1 1 258 0 0 1 0 1 1 278 0 0 1 1 1 1 298 0 1 0 0 1 1 2b8 0 1 0 1 1 1 2d8 0 1 1 0 1 1 2f8 0 1 1 1 1 1 318 1 0 0 0 1 1 338 1 0 0 1 1 1 358 1 0 1 0 1 1 378 1 0 1 1 1 1 398 1 1 0 0 1 1 3b8 1 1 0 1 1 1 3d8 1 1 1 0 1 1 3f8 1 1 1 1 1 1 table 2 - 2 base address jumper setting s GPS140hr 0 = jumper off 1 = jumper closed note that this table shows decoding only the 4 high bits of the address. address jumpers a4 and a3 can be used for addresses not listed, example: addr 2e8 = 011101.
GPS140hr 15 rtd embedded technologies, inc. fig. 2 - 2 base address jumpers il lustrating address 3f8h, a8 is to the bottom, a3 is located to the top of the jumper block host interrupt (factory setting: irq5, g closed) the header connector, shown in figure 2 - 3 below, lets you connect the onboard control logic inte r rupt outputs t o one of the interrupt channels available on the host computer xt/at bus. fig. 2 - 3 interrupt jumpers from left to right: irq 2,3,4,5,7,10,11,12,14,15 and g note: the GPS140hr hardware supports interrupt sharing! jumper g must be closed on one module pe r used interrupt. for example if two boards share interrupt number 7 only one board may have the g jumper closed. the g jumper connects a 1kohm resistor to ground while the shared interrupts are 3 - stated pulling the line to an inactive level.
GPS140hr 16 rtd embedded technologies, inc. gps configur ation (factory setting: rom disabled, nmea) the three jumper blocks illustrated below let you configure the mode of operation of your gps receiver module. the topmost jumper is the gps receiver hardware reset, the rom jumper configures whether settings f rom the eepprom are used during startup or not, nmea jumper sets the protocol mode of the receiver. table 2 - 3 describes in detail the operation of these jumpers. note that if you change the jumper settings for rom or nmea you should perform a reset of the receiver by closing the contacts of the rst - jumper for the changes to take effect. fig. 2 - 4 gps receiver jumper blocks for configuration nmea jumper rom jumper result 0 0 nmea message format, communication at 4800bps, no parity, 8 data, 1 stop. the receiver operates from default initialization values stored in rom and will output default nmea message set from rom 0 1 nmea message format, communication at 4800bps, no parity, 8 data, 1 stop. the receiver selects the default nmea output message set and uses initialization values from the data stored in sram or eeprom 1 0 binary message format, communication at 9600bps, no parity, 8 data, 1 stop. the receiver operates from default initialization values stored in rom 1 1 data stored in sram or eeprom de termines message format, host port communication settings, and default mes - sage set (zodiac nmea,9600bps,n,1) table 2 - 3 gps receiver configuration jumpers, 0 = jumper off, 1 = jumper closed
GPS140hr 17 rtd embedded technologies, inc. antenna supply (factory setting: +5v for active antenna) activ e gps antennas require a supply to drive the antenna. typical standard supply voltages are +5v and +12v. note that in case you use a passive antenna the supply selection jumper must be removed. driving a passive antenna may cause permanent damage to the an tenna. fig. 2 - 5 antenna supply selection jumper block set for +5v antenna supply
GPS140hr 18 rtd embedded technologies, inc. chapter 3 b oard installation the GPS140hr gps module is designed to directly mount on top or under your rtd pc/104 cpumodule stack. this chapter tell s you step - by - step how to install your GPS140hr into your system. board installation keep your board in its antistatic bag until you are ready to install it to your system! when removing it from the bag, hold the board at the edges and do not touch the components or connectors. please handle the board in an antistatic environment and use a grounded workbench for testing and handling of your hardware. before installing the board in your computer, check the power cabling. failure to do so may cause the po wer supply unit to malfunction or even cause permanent damage. general installation guidelines: ? touch the grounded metal housing of your computer to discharge any ? antistatic buildup and then remove the board from its antistatic bag. ? hold the board by the edges and install it in an enclosure or place it on the table on an antistatic surface ? install your board in your system, and wire the power supply correctly. ? failure to do so may cause the power supply unit to malfunction or even cause permanent damag e to the device. ? check all wiring connections once and then once more again ? check the antenna supply voltage and configure x1 correctly ? connect the gps antenna to the osx connector on the receiver module ? apply power to your system, this will automatically initialize your gps receiver, a blinking led indicates activity of the gps receiver and messages being sent
GPS140hr 19 rtd embedded technologies, inc. fig. 3 - 1 GPS140hr integrated in a rtd pc/104 cpumodule stack together with a hpwr104 power supply module and a cmm series cpumodule gps receiver connector the table 3 - 1 below shows the pin outs of the gps receiver interface. this interface is compatible with the majority of gps receivers in the same form factor. the oem gps receiver connects to this 2mm female socket connector with p ins facing the pcb. pin description pin description 1 antenna +v 2 gps +5v supply 3 3,6v battery backup 4 no connect 5 gps reset 6 no connect 7 nmea_sel 8 rom_sel 9 no connect 10 gnd 11 ser_out 12 ser_in 13 gnd 14 no connect 15 diff_gps_in 16 gnd 17 gnd 18 gnd 19 1 pps 20 10khz table 3 - 1 pin outs of the gps receiver interface connector
GPS140hr 20 rtd embedded technologies, inc. differential gps signal input connector j1 differential gps correction signal can be connected to your GPS140hr for exact precise positioning using the rtcm sc - 04 differential signal source. the signal levels on this input are rs232. the connector pinout is shown below in figure 3 - 2 and table 3 - 2. fig 3 - 2 dgps data input header connector pin desc pin desc 1 n.c. 2 n.c. 3 dgps_in 4 n.c. 5 n.c. 6 n.c. 7 n. c. 8 n.c. 9 gnd 10 gnd table 3 - 2 pin out of dgps input header connector
GPS140hr 21 rtd embedded technologies, inc. utility i/o header connector j3 external power and i/o signals connect to your GPS140hr through header connector j3. the connector pinout is shown below in figure 3 - 3 and table 3 - 3. fig 3 - 3 utility connector pin desc pin desc 1 +5v 2 +12v for antenna 3 ser_out 4 1 pps output 5 ser_in 6 10khz output 7 batt in 3,6v 8 gnd 9 gnd 10 gnd table 3 - 3 utility connector pin out in case you are using a +12v active anten na you must either have a +12v present from the pc/104 bus or you can supply it through pin # 2 of the utility connector. the +3,6v battery input pin # 7 may be used in case you do not use the onboard battery for gps sram backup. do not supply this pin if the battery is connected. the 1pps and 10khz outputs are buffered using hct04 buffers. the ser_out signal present in pin #3 is the ttl - level output of the gsp receiver. you may use this to connect to other devices in your system that mat need gps informat ion.
GPS140hr 22 rtd embedded technologies, inc. chapter 4 - h ardware description this chapter describes the major hardware building blocks of the GPS140hr: ? ? the gps receiver module ? ? antenna ? ? uart channel ? ? pulse outputs ? ? fuses fig. 4 - 1 block diagram of the GPS140hr
GPS140hr 23 rtd embedded technologies, inc. the gps receiver module a 12 - cha nnel parallel - tracking gps receiver provides fast time - to - first - fix (ttff) under all startup conditions. while the best ttff performance is achieved when the time of day and current position estimates are provided by the receiver, the flexible signal acqui sitions system takes advantage of the available information to provide fast ttff. acquisition is guaranteed under all initialization conditions as long as visible satellites are not obscured. to minimize the ttff when primary system power is off the gps14 0hr maintains the sram and the real time clock (rtc ) using the onboard battery. in this case the shortest ttff is achieved by using the rtc time data and prior position data stored in the receiver?s sram. the receiver supports 2d operation when less than three satellites are available or when required by operating conditions. altitude information required for 2d operation is determined by the receiver or may be performed by your application software. communication to and from the receiver is performed thr ough a serial channel that is connected to the onboard uart. the receiver?s primary serial port outputs navigation data and accepts commands from the oem application in nmea - 0183 format or connexant binary message format. the seondary serial port is config ured to accept dgps corrections in the rtcm sc - 104 format. a complete detailed description of the serial data interface is contained in the conexant document: zodiac gps receiver family designer?s guide availabe on the web at http://www.conexant.com/ . the GPS140hr is factory preconfigured to operate in nmea/0183 format at a datarate of 9600bps. this manual is not designed to be a gps handbook, for a complete description on the gps receiver tu30 - d140 visit the rever manufacturers website, for a complete description on the nmea protocol you can visit http://www.nmea.org/ . antenna the gps receiver can operate from an active or passive gps antenna to receive l1 band frequency gps ca rrier signals. matsushita automation controls produces a complete range of gps antennae to meet the ultra - compact automotive, heavy - duty marine and extremely accurate survey and timing requirements. the starter kit sk - GPS140hr contains a vic1 - lp low profil e antenna. this is a +5v active antenna with a power consumption of 25ma max and it will operate from ? 40 to +100c. typical cable connections are made with osx, sma and smb connections. if you connect the antenna directly to your gps receiver without a fee d through connector through your enclosure wall you can select an antenna with an osx connector to plug into the osx plug on your receiver module. visit http://www.mac - europe.com/ for information on gps antennae.
GPS140hr 24 rtd embedded technologies, inc. uart channel gps data is sent to the host from the receiver through a standard 16c550 compatible uart. all today?s operating systems will recognize and support this serial communication device. the GPS140hr uses its own onboard serial port and will no t reserve serial port resources from the system. the i/o base address and interrupt for this serial port can be flexibly set as has been described in previous chapters of this manual. this user?s manual will not wade into details of serial port programming , this information is commonly available today. you can use any communication software package or terminal program to connect to your GPS140hr uart. just make sure you set up the i/o and irq right. ascii data will start coming out every second from the gps receiver onto the screen. the uart on the board is specified for full operation from ? 40 to +85c. the oscillator frequency is set 1.8432mhz. the uart is connected as a null - modem device, only the txd and rxd lines of the uart are connected to the gps re ceiver chip. pulse outputs 1 pps output and led a 1 pps buffered ttl level output is generated by the gps receiver module. this output can be used by your oem application for timing purposes. when the receiver provides a valid navigation solution, t he rising edge of this signal is synchronized with the utc one - second epochs to within + - 300ns. the receiver software produces a data message containing the utc time associated with each time mark pulse. this output signal is connected the 1s led shown bel ow in figure 4 - 2. fig. 4 - 2 1pps output indicator led 10khz output a 10khz clock - output that is synchronized to the utc 1pps output is also generated by the GPS140hr. this signal can also be used for oem timing purposes. this signal is buffe red with a hct04 buffer.
GPS140hr 25 rtd embedded technologies, inc. fuses a 2a fuse (yellow) protects the gps receiver from error conditions. the active antenna is fused with a 125ma fuse (green). these fuses are on the left edge of the board.
GPS140hr 26 rtd embedded technologies, inc. chapter 5 b oard operation and p r ogramming this chapter shows you how to program and use your GPS140hr. it provides a general description of the i/o map. detailed serial port programming tips are not within the scope of this manual. defining the memory map the memory map of the gps1 40hr occupies eight bytes of host pc i/o space. this window is freely selectable by the user as described in chapter 2, table 2 - 2. after setting the base address you have access to the internal resources of the GPS140hr control logic. these resources are n ot described in detail, since they are mapped as a standard pc serial port. for more details on the exar st16c550ij44 uart chip programming please download the component specific data sheet from the manufacturers website: http://www.exar.com/products/st16c550.html addr register dir comments txd o only if control reg. bit 7=0 rxd i only if control reg. bit 7=0 base baud div. low only if control reg. bit 7=1 baud div. high only if co ntrol reg. bit 7=1 base+1 irq enable only if control reg. bit 7=0 base+2 irq id base+3 line control base+4 modem control base+5 line status base+6 modem status table 5 - 1 general i/o map of the GPS140hr base = base address
GPS140hr 27 rtd embedded technologies, inc. interrupts what is an interrupt? an interrupt is an event that causes the processor in your computer to temporarily halt its current process and execute another routine. upon completion of the new routine, control is returned to the original routine at the point where its execution was inte r rupted. interrupts are a very flexible way of dealing with asynchronous events. keyboard activity is a good example; your computer cannot predict when you might press a key and it would be a waste of processor time to do nothi ng whilst waiting for a keystroke to occur. thus the interrupt scheme is used and the processor proceeds with other tasks. when a keystroke finally occurs, the keyboard then 'interrupts' the processor so that it can get the keyboard data .it then places i t into the memory, and then returns to what it was doing before the i n terrupt occurred. other common devices that use i n terrupts are a/d boards, network boards, other used serial ports etc. your GPS140hr can interrupt the main processor when a satellite n avigation data message is received. you can write powerful code to interface to your GPS140hr when you use interrupts. interrupt request lines to allow different peripheral devices to generate interrupts on the same computer, the pc at bus has inte r rupt request channels (irq's). a rising edge transition on one of these lines will be latched into the interrupt controller. the interrupt controller checks to see if the interrupts are to be acknowledged from that irq and, if another interrupt is being proces sed, it decides if the new request should supercede the one in progress or if it has to wait until the one in progress has been completed. the priority level of the interrupt is determined by the number of the irq as follows; irq0 has the highest priority whilst irq15 has the lowest. many of the irq's are already used by the standard system resources, irq0 is dedicated to the internal timer, irq1 is dedicated to the keyboard input, irq3 for the serial port com2, and irq4 for the serial port com1. often inte rrupts 2,5,7,10,11 and 15 are free for the user. 8259 programmable interrupt controller the chip responsible for handling interrupt requests in a pc is the 8259 interrupt controller. to use inte r rupts you will need to know how to read and set the 8259' s internal interrupt mask register (imr) and how to send the end - of - interrupt (eoi) command to acknow l edge the 8259 interrupt controller.
GPS140hr 28 rtd embedded technologies, inc. interrupt mask register (imr) each bit in the interrupt mask register (imr) contains the mask status of the inter rupt line. if a bit is set (equal to 1), then the corresponding irq is masked, and it will not generate an interrupt. if a bit is cleared (equal to 0), then the corresponding irq is not masked, and it can then generate an interrupt. the interrupt mask re g i ster is pr o grammed through port 21h . end - of - interrupt (eoi) command after an interrupt service routine is complete, the 8259 interrupt controller must be acknowledged by writing the value 20h to port 20h. what exactly happens when an interrupt occurs? understanding the sequence of events when an interrupt is triggered is necessary to correctly write interrupt handlers. when an interrupt request line is driven high by a peripheral device (such as the GPS140hr), the interrupt controller checks to see if interrupts are enabled for that irq. it then checks to see if other inte r rupts are active or requested and determines which interrupt has priority. the interrupt controller then inte r rupts the processor. the current code segment (cs), instruction pointer (ip), and flags are pushed onto the system stack., and a new set if cs and ip are loaded from the lowest 1024 bytes of memory. this table is referred to as the interrupt vector table and each entry to this table is called an interrupt vector. once the ne w cs and ip are loaded from the interrupt vector table, the processor starts to execute code from the new code segment (cs) and from the new instruction pointer (ip). when the interrupt routine is co m pleted, the old cs and ip are popped from the system sta ck and the program execution continues from the point where interruption occurred. using interrupts in your program adding interrupt support to your program is not as difficult as it may seem especially when programming u n der dos. the following discussi on will cover programming under dos. note that even the smallest mistake in your interrupt program may cause the computer to hang up and will only restart after a reboot. this can be frustrating and time - consuming.
GPS140hr 29 rtd embedded technologies, inc. writing an interrupt serv ice routine (isr) the first step in adding interrupts to your software is to write an interrupt service routine (isr). this is the routine that will be executed automatically each time an interrupt request occurs for the specified irq. an isr is different from other sub - routines or procedures. first on entrance the processor registers must be pushed onto the stack before anything else! second, just before exiting the routine, you must clear the inte r rupt on the GPS140hr by writing to the status register, a nd write the eoi command to the interrupt controller. finally, when exiting the interrupt routine the processor registers must be popped from the system stack and you must execute the iret assembly instruction. this instruction pops the cs, ip and processo r flags from the system stack. these were pushed onto the stack when entering the isr. most compilers allow you to identify a function as an interrupt type and will automatically add these instru c tions to your isr with one exception: most compilers do not automatically add the eoi command to the fun c tion, you must do it yourself. other than this and a few exceptions discussed below, you can write your isr as any code routine. it can call other functions and procedures in your program and it can access glob al data. if you are writing your first isr, we recommend you stick to the basics; just something that enables you to verify you have entered the isr and executed it successfully. for example: set a flag in your isr and in your main program check for the fl ag. note: if you choose to write your isr in in - line assembly, you must push and pop registers correctly and exit the routine with the iret instruction instead of the ret instru c tion. there are a few precautions you must consider when writing isr' s. the most important is, do not use any dos functions or functions that call dos functions from an interrupt routine. dos is not re - entrant; that is, a dos function cannot call itself. in typical programming, this will not happen because of the way dos is written. but what about using interrupts? consider then the following situation in your program: if dos function x is being executed when an interrupt occurs and the interrupt routine makes a call to the same dos function x, then function x is essentially being called while active. such cases will cause the computer to crash. dos does not support such operations. the general rule is that do not call any functions that use the screen, read keyboard input or any file i/o routines, these should not be used in isr's. the same problem of re - entrancy also exists for many floating point emulators. this effectively means that you should also avoid floating point math e matical operations in your isr. note that the problem of reentrancy exists, no matter what progra mming language you use. even, if you are writing your isr in assembly language, dos and many floating point emulators are not re - entrant. of course there are ways to avoid this problem, such as those which activate when your isr is called. such solutions a re, however, beyond the scope of this manual.
GPS140hr 30 rtd embedded technologies, inc. the second major concern when writing isr's is to make them as short as possible in term of execution time. spending long times in interrupt service routines may mean that other important interrupts are not s erviced. also, if you spend too long in your isr, it may be called again before you have exited. this will lead to your computer hanging up and will require a reboot. your isr should have the following structure: ? push any processor registers used in your isr. most c compiler do this automatically ? put the body of your routine here ? clear the interrupt bit by reading GPS140hr rxd register ? issue the eoi command to the 8259 by writing 20h to address 20h ? pop all registers. most c compilers do this automati cally the following c example shows what the shell of your isr should be like: /* ------------------------------------------------------------------------------- | function: new_irq_handler | inputs: nothing | returns: nothing | -------------------------- ----------------------------------------------------- */ void interrupt far new_irq_handler(void) { irq_flag = 1; // indicate to main process interrupt has occurred { // your program code to read uart data put here // read to a data buffer fo r example: guc_buffer[gi_bufpos++] = inp(gi_serial_data); } outp(0x20, 0x20); // acknowledge the interrupt controller } saving the startup interrupt mask register (imr) and interrupt ve c tor the next step after writing the isr is to save the star tup state of the interrupt mask register (imr) and the original interrupt vector you are using. the imr is located in address 21h . the interrupt vector you will be using is located in the interrupt vector table which is an array of pointers (addresses) and it is locate din the first 1024 bytes of the memory (segment 0 offset 0). you can read this value directly, but it is better practice to use dos function 35h (get interrupt vector) to do this. most c compilers have a special function available for doing t his. the vectors for the hardware inte r rupts on the xt - bus are vectors 8 - 15., where irq0 uses vector 8 and irq7 uses vector 15. thus if your GPS140hr is using irq5 it co r responds to vector number 13.
GPS140hr 31 rtd embedded technologies, inc. before you install your isr, temporarily mask out the irq you will be using. this prevents the irq from r e questing an interrupt while you are installing and initializing your isr. to mask the irq, read the current imr at i/o port 21h, and set the bit that corresponds to the irq. the imr is arranged so that b it 0 is for irq0 and bit 7 is for irq7. see the paragraph entitled interrupt mask register (imr ) earlier in this discu s sion for help in determining your irq's bit. a f ter setting the bit, write the new value to i/o port 21h. with the startup imr saved and the interrupts temporarily disabled, you can assign the interrupt vector to point to your isr. again you can overwrite the appropriate entry in the vector table with a direct memory write, but this is not recommended. instead use the dos function 25h (set interrupt vector) or, if your co m piler provides it, the library routine for setting up interrupt vectors. remember that interrupt vector 8 corr e sponds to irq0, vector 9 for irq1 etc. if you need to program the source of your interrupts, do that next. for example, if you are using transmitted or received messages as an interrupt source program it to do that. finally, clear the mask bit for your irq in the imr. this will e n able your irq. common interrupt mistakes remember hardware interrupts are from 8 - 15, xt irq's are numbered 0 - 7. do not forget to clear the irq mask bit in the imr forgetting to send the eoi command after isr code. disables further i n terrupts.
GPS140hr 32 rtd embedded technologies, inc. example on interrupt vector table setup in c - code: void far _interrupt new_irq1_handler(v oid ); /* isr function prototype */ #define irq1_vector 3 /* name for irq */ void (interrupt far *old_irq1_dispatcher) (es,ds,di,si,bp,sp,bx,dx,cx,ax,ip,cs,flags); /* variable to store old irq_vector */ void far _interrupt new_irq1_handler(void ) ; /* ---------------------------------------------------------------------- | function: init_irq_handlers | inputs: nothing | returns: nothing | purpose: set the pointers in the interrupt table to point to | our funtions ie. setup for isr's. | ------------ ---------------------------------------------------------- */ void init_irq_handlers(void) { _disable(); old_irq1_handler = _dos_getvect(irq1_vector + 8); _dos_setvect(irq1_vector + 8, new_irq1_handler); gi_old_mask = inp(0x21); outp(0x21,gi_old_ma sk & ~(1 << irq1_vector)); _enable(); } |/* ---------------------------------------------------------------------- | function: restore, do this before exiting program | inputs: nothing | returns: nothing | purpose: restore the interrupt vector table. | ---------------------------------------------------------------------- */ void restore(void) { /* restore the old vectors */ _disable(); _dos_setvect(irq1_vector + 8, old_irq1_handler); outp(0x21,gi_old_mask); _enable(); }
GPS140hr 33 rtd embedded technologies, inc. chapter 6 - GPS140hr specificat ions host interface 16 - bit pc/104 bus, xt - bus used gps receiver specifications operational gps receiver connexant jupiter tu - d140 update rate once per second reacquisition 2s typical with a 10s blockage rtcm sc - 104 diff erential compatibility direct connection to rs232 input serial data output protocols nmea - 0183, connexant binary power requirement +5v, preamplifier passthrough up to +12v for active antenna rf signal environment rf input 1575 .42mhz (l1 band) at levels - 130dbw and ? 163dbw connector osx high retention female conn. burnout protection - 10dbw signal with a bandwidth of 10mhz centered about the l1 carrier frequency. environmental cooling convection o perating temperature - 40 to +85c humidity rh up to 95% non condensing altitude - 1000 to 60.000 ft maximum vehicle dynamic 500m/s acquisition and navigation vibration survival 18g peak uart uart compatibility 16c550 oscillator frequency 1.8432mhz connection null modem base addresses 32 interrupts 2,3,4,5,7,10,11,12,14 and 15
GPS140hr 34 rtd embedded technologies, inc. fuses gps receiver 2a active antenna 125ma GPS140hr electromechanical operating temperature range - 40 to +85 c humidity rh up to 95% non condensing altitude - 1000 to 30.000 ft
GPS140hr 35 rtd embedded technologies, inc. chapter 7 - r eturn policy and w arranty return policy if you wish to return a product to the factory for service, please follow this procedure: read the limited warranty to familiarize yourself with our warranty policy. contact the factory for a return merchandise authorization (rma) number. please have the following available: ? complete board name ? board serial number ? a detailed description of the board? s behavior list the name of a contact person , familiar with technical details of the problem or situation, along with their phone and fax numbers, address, and e - mail address (if available). list your shipping address!! indicate the shipping method you would like used to return the product to you. we will not ship by next - day service without your pre - approval. carefully package the product, using proper anti - static packaging. write the rma number in large (1") letters on the outside of the package. retu rn the package to: rtd embedded technologies, inc. 103 innovation blvd. state college pa 16803 - 0906 usa
GPS140hr 36 rtd embedded technologies, inc.
GPS140hr 37 rtd embedded technologies, inc. chapter 8 l imited w arranty rtd embedded technologies, inc. warrants the hardware and software products it manufactures and produces to be free from defects in materials and workmanship for one year following the date of shipment from rtd embedded technologies, inc. this warranty is limited to the original pur chaser of product and is not transferable. during the one year warranty period, rtd embedded technologies will repair or replace, at its op tion, any defective products or parts at no additional charge, provided that the product is returned, shipping prepaid, to rtd embedded technologies. all replaced parts and products become the pr operty of rtd embedded technologies. before returning any product for repair, customers are required to contact the factory for an rma number. this limited warranty does not extend to any products which have been damaged as a result of accident, misuse, ab use (such as: use of incorrect input voltages, improper or insufficient ventilation, failure to follow the operating instructions that are provided by rtd embedded technologies, "acts of god" or other contingencies beyond the con trol of rtd embedded techn ologies), or as a result of service or modification by anyone other than rtd embedded technologies. except as expressly set forth above, no other warranties are expressed or implied, including, but not limited to, any implied warranties of merchantability and fit ness for a particular purpose, and rtd embedded technologies expressly dis claims all warranties not stated herein. all implied warranties, including implied warranties for mechantability and fitness for a particular purpose, are limited to the dur ation of this warranty. in the event the product is not free from defects as warranted above, the purchaser's sole remedy shall be repair or replacement as provid ed above. under no circumstances will rtd embedded technologies be liable to the purchaser or any user for any damages, including any inciden tal or consequential damages, expenses, lost profits, lost savings, or other damages arising out of the use or inability to use the product. some states do not allow the exclusion or limitation of incidental or consequential damages for consumer products, and some states do not allow limitations on how long an implied warranty lasts, so the above limitations or exclusions may not apply to you. this warranty gives you specific legal rights, and you may also ha ve other rights which vary from state to state.
GPS140hr 38 rtd embedded technologies, inc. rtd embedded technologies, inc. 103 innovation blvd. state college pa 16803 - 0906 usa our website: www.rtd.com


▲Up To Search▲   

 
Price & Availability of GPS140

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X